<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html>
<html>
<head>
    <title>Demo</title>
    <meta charset="utf-8"/>
    <script  src='../../js/core.js'></script>
    <link type="text/css" rel='stylesheet' href="../../css/link.css"/>
</head>
<body>

          <%
           /*
           *验证权限
           *author 宋智洋
           *data 2011-11-26
           *update 胡瑾
           *data 2011-12-01
           *增加了userId
           */
			String flag = (String)session.getAttribute("flag");
			String userId = (String)session.getAttribute("userId");
			int studentId = Integer.parseInt(userId);
						
			if (flag != "student"|| flag==null )
			{
				%>
          <script language="javascript">
				     alert("您没有学生权限,请重新登录"); window.location.href="../../index.jsp";
				    </script>
          <%
				
			}else{
				Student student = new Student();
				StudentControl sc = new StudentControl();
				student = sc.GetStudent(studentId);
				out.print("<p>"+student.getStudentName()+"   欢迎您</p>");
			}
           %>
<div id="page">
    <header class="header">
        <p class="title">胡瑾，欢迎你登录CAT测评系统</p>
        <p class="title">当前位置：首页&lt;&lt;友情链接</p>
    </header>
    <section class="main">
        <nav class="navigator">
            <ul>
                <li><a href=""> <img src="../../image/logo.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo1.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo2.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo3.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo4.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo5.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo6.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo7.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo8.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo9.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo10.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo11.gif"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo12.jpg"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo13.jpg"><br>商标一</a></li>
                <li><a href=""> <img src="../../image/logo14.jpg"><br>商标一</a></li>
            </ul>
        </nav>
    </section>
    <footer class="footer"><small>© 2012 Nenu</small></footer>
</div>
</body>
</html>

